package com.example.avmanagerweb.service;

import com.example.avmanagerweb.entity.Fence;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.avmanagerweb.entity.vo.FenceGraphVo;
import com.example.avmanagerweb.entity.vo.FenceListVo;
import com.example.avmanagerweb.entity.vo.FenceVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xg
 * @since 2023-06-27
 */
public interface FenceService extends IService<Fence> {

    List<FenceListVo> getFenceList(int depid);

    /**
     * 添加围栏
     * @param fenceVo  围栏所需参数
     * @return
     */
    boolean addFence(FenceVo fenceVo);
    /**
     * 添加围栏图像
     * @param fenceGraphVo  围栏图像所需参数
     * @return
     */
    boolean addFenceGraph(FenceGraphVo fenceGraphVo);

    /**
     * 删除围栏
     * @param fenceId
     * @return
     */
    boolean deleteFence(int fenceId);
    /**
     * 删除围栏所以图形
     * @param fenceId
     * @return
     */
    boolean deleteFenceGraph(int fenceId);

}
